/**
 * SingleValue.java
 * ************************** 
 * @date Apr 7, 2011
 * @author Michele Tamburini
 * 
 * **************************
 */
package gossipServices.aggregation;

import java.io.Serializable;

/**
 * Description: 
 * A very simple object that contains a unique 
 * double value. 
 * It provides the method to retrieve and set the value. 
 * It's used by the Aggregation protocol
 * as the estimation value on the local node, 
 * and is shared between the two active and
 * passive threads. 
 * 
 */
public interface SingleValueDouble extends Serializable {

	/**
	 * Returns the value contained in the class.
	 * @return estimationValue:double
	 */
	double getValue();

	/**
	 * Set the value contained in the class to val.
	 * @param val:double
	 */
	void setValue(double val);

}
